from .more.wfs import Wfs
from .more.run_command import run
from .more.save_kit import safe_kit
from .resource_center import Resource
from .more.remove_temp import remove_temp
from .more.save_remove import safe_remove

# from .file_exchanger.receive import receiver
from .export_change.obserable import Observable
from .more.time_beautiful import convert_custom_time
from .file_exchanger.distribute import Distribute, Distribution_failed


class Search:
    class Hosting:
        from .more.hosting_search import search_app_by_id as _search_app_by_id
        from .more.hosting_search import search_stype_by_id as _search_stype_by_id
        from .more.hosting_search import (
            search_stype_by_back_id as _search_stype_by_back_id,
        )
        from .more.hosting_search import (
            search_max_structure_num_by_app_id as _search_max_structure_num_by_app_id,
        )
        from .more.hosting_search import search_all_apps as all_apps

        stype_by_id = _search_stype_by_id
        app_by_id = _search_app_by_id
        stype_by_back_id = _search_stype_by_back_id
        max_structure_num_by_app_id = _search_max_structure_num_by_app_id

    class Core:
        from .more.core_search import search_id_by_username as _search_id_by_username
        from .more.core_search import (
            search_user_by_username as _search_user_by_username,
        )
        from .more.core_node_search import search_host_by_node_id as host_by_node_id
        from .more.core_node_search import search_node_by_node_id as node_by_node_id
        id_by_username = _search_id_by_username
        user_by_username = _search_user_by_username


class FO:
    """File Operation，文件操作类"""

    from .more.file_operation import create, copy, move, ls, cat, wirte, delete
